﻿<div id="grid-view">
    <button class="tiny secondary success" data-bind='click: sortByName, enable: sortedNameDesc() == false'>
        Sort by name
    </button>

    <button class="tiny secondary success" data-bind='click: sortByNameAsc, enable: sortedNameAsc() == false'>
        Sort by name asc
    </button>

    <button class="tiny secondary success" data-bind='click: sortByPrice, enable: sortedPriceDesc() == false'>
        Sort by price
    </button>

    <button class="tiny secondary success" data-bind='click: sortByPriceAsc, enable: sortedPriceAsc() == false'>
        Sort by price asc
    </button>

    <button class="tiny secondary success" data-bind='click: jumpToFirstPage, enable: gridViewModel.currentPageIndex'>
        Jump to first page
    </button>

    <div data-bind='simpleGrid: gridViewModel'>
    </div>
</div>
